package select;

import java.util.Scanner;

public class NestIfElseDemo {

    public static void main(String[] args) {
        int money; //存款
        int height; //身高
        int choice; //选择值

        Scanner sc = new Scanner(System.in);
        System.out.println("请输入您的身高（cm）:");
        height = sc.nextInt();

        if (height >= 180) {
            //身高符号标准
            System.out.println("请输入存款数量(万):");
            money = sc.nextInt();
            if (money >= 100) {
                System.out.println("请输入您长的像谁？");
                System.out.println("1.宋小宝  2.潘长江  3.王力宏");
                choice = sc.nextInt();
                if (choice == 3) {
                    System.out.println("您就是我心中的青蛙王子");

                } else {
                    System.out.println("丑八怪靠边站");
                }

            } else {
                System.out.println("穷光蛋靠边站");
            }
        } else {
            System.out.println("身高不符合，靠边站!");
        }
    }
}
